<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html lang="en">

	<head>
		<meta charset="UTF-8">
		<title>修改优惠券</title>
		<link rel="stylesheet" type="text/css" href="../statics/css/global.css">
		<link rel="stylesheet" type="text/css" href="../statics/css/form.css" />
		<link rel="stylesheet" type="text/css" href="../statics/css/add.css" />
		<link rel="stylesheet" type="text/css" href="../statics/css/popup.css" />
		<link rel="stylesheet" type="text/css" href="../statics/css/upload.css" />
		<link rel="stylesheet" type="text/css" href="../statics/css/layui.css" />
		<script type="text/javascript" src="../statics/js/jquery-3.3.1.js"></script>
	
	</head>

	<body>
		<div class="container">
			<h1 class="tabTitle"><a href="/piaoniu/shops/entrance"><img src="../statics/images/xjt.png"/></a>修改运营商</h1>
			<div class="info">
			   	<form action="/piaoniu/coupons/updatacoupons" method="post"   class="formSheet">
					
					<dl>
						<dt><span>优惠券编号</span></dt>
						<dd>
							<div class="fbox">
								<input type="text" class="textStyle" value="${coupons[0].couponsId}" id="couponsId" name="couponsId"  readonly="true"  style="width:360px;"  />
							</div>
							<span id="userNameText" class="txtInfo">不能修改该</span>
						</dd>
					</dl>
					<dl>
						<dt><span>优惠券类型</span></dt>
						<dd>
							<div class="fbox">
								<input type="text" class="textStyle"  value="${coupons[0].couponsType}"  id="couponsType" name="couponsType" style="width:360px;"  />
							</div>
						</dd>
					</dl>
					<dl>
						<dt><span>优惠券金额</span></dt>
						<dd>
							<div class="fbox">
								<input type="text" class="textStyle"  value=" ${coupons[0].couponsMoney}"   name="couponsMoney" style="width:360px;"  />
							</div>
						</dd>
					</dl>
					<dl>
						<dt><span>起始日期</span></dt>
						<dd>
							<div class="fbox">
							<%-- <fmt:formatDate   value="${coupons[0].couponsStart}" pattern="yyyy-MM--dd HH:mm:ss"/> --%>
							<input type="datetime-local" class="dateStyle"  value=" ${coupons[0].couponsStart}"  id="couponsStart"  name="couponsStart" style="width:200px;" /> 
							</div>
						</dd>
					</dl>
					<dl>
						<dt><span>起始日期</span></dt>
						<dd>
							<div class="fbox">
								<input type="datetime-local" class="dateStyle"   value=" ${coupons[0].couponsFinish}"  id="couponsFinish" name="couponsFinish"  style="width:200px;" />
							</div>
						</dd>
					</dl>
					<dl>
						<dt>&nbsp;</dt>
						<dd>
							<input type="submit" value="修改" class="button save"  />
						</dd>
					</dl>

				</form>
			</div>
		</div>
	</body>

</html>